import request from '@/utils/request'

// 查询API分类列表
export function listInterfaceCategory(query) {
  return request({
    url: '/interfaces/interfaceCategory/list',
    method: 'get',
    params: query
  })
}

// 查询API分类详细
export function getInterfaceCategory(id) {
  return request({
    url: '/interfaces/interfaceCategory/' + id,
    method: 'get'
  })
}

// 新增API分类
export function addInterfaceCategory(data) {
  return request({
    url: '/interfaces/interfaceCategory',
    method: 'post',
    data: data
  })
}

// 修改API分类
export function updateInterfaceCategory(data) {
  return request({
    url: '/interfaces/interfaceCategory',
    method: 'put',
    data: data
  })
}

// 删除API分类
export function delInterfaceCategory(id) {
  return request({
    url: '/interfaces/interfaceCategory/' + id,
    method: 'delete'
  })
}
